

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@interface BaseDataManager : NSObject

- (void)saveInfo:(id)obj toFile:(NSString *)filePath;
- (id)readFileDataAtPath:(NSString *)filePath;
+ (NSString *)saveImageWithUrl:(NSURL *)imageURL toFile:(NSString *)filePath imageName:(NSString *)imageName;
+ (NSString *)saveImageWithData:(UIImage *)image toFile:(NSString *)filePath imageName:(NSString * _Nullable)imageName;

+ (NSString *)ballName:(APBallType)type;
+ (NSString *)ballImageName:(APBallType)type;

+ (void)loadAppConfig;

+ (void)removeFile:(NSString *)filePath;
@end

NS_ASSUME_NONNULL_END
